package cn.edu360



import org.apache.commons.lang.StringUtils
object DataUtils {
  def parseInt(str:String): Int = {
  try {
    if (StringUtils.isNotEmpty(str)) str.toInt else 0
  } catch {
    case _ =>0
  }
  }
  def parseDouble(str:String): Double = {
    try {
      if (StringUtils.isNotEmpty(str)) str.toInt else 0.0
    } catch {
      case _ =>0.0
    }
  }

}
